package com.keycloak.admin.config;

import com.keycloak.admin.utils.KeycloakClientManager;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.List;

@Configuration
public class ScheduledConfig {

    @Scheduled(fixedDelay = 300000)
    public void  clearClientMap(){
        try {
            KeycloakClientManager.clearMap();
            System.out.println("清除client对象完成！");
        }catch (Exception e){

            e.printStackTrace();
        }


    }


}
